/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pt.isel.medknow.tables;

import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author fallen
 */
public class Doctor {
    //<editor-fold defaultstate="collapsed" desc="fields">
    private Integer doctorId;
    private String name;
    private Integer filialId;
    private Set visits = new HashSet();
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="IDE generated stuff">
    public Integer getFilialId() {
        return filialId;
    }

    public void setFilialId(Integer filialId) {
        this.filialId = filialId;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set getVisits() {
        return visits;
    }

    public void setVisits(Set visits) {
        this.visits = visits;
    }
    //</editor-fold>

    public Doctor() {
    }

    @Override
    public String toString() {
        return String.format("doctorName=%s, filialId=%s, visitLen=%s", 
                name, filialId.toString(), visits.size());
    }
}
